package com.carl.zeus.util;

import com.baomidou.mybatisplus.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

@Data
public class IdEntity<T extends Model> extends Model<T> {

    private Long id;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
